package com.hundsun.aitest.common;

public enum CaseTypeEnum {
    AUTO(1, "Auto Case"),
    CHECK(2, "Check Case");

    private final int value;
    private final String description;

    CaseTypeEnum(int value, String description) {
        this.value = value;
        this.description = description;
    }

    public int getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }

    public static CaseTypeEnum fromValue(int value) {
        for (CaseTypeEnum b : CaseTypeEnum.values()) {
            if (b.value == value) {
                return b;
            }
        }
        throw new IllegalArgumentException("Unexpected value '" + value + "'");
    }
}